package com.atlin.project.service;

import com.atlin.project.model.domain.BiTeam;
import com.atlin.project.model.domain.BiUserTeam;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author atlin
 * @description 针对表【bi_user_team(用户团队映射表)】的数据库操作Service
 * @createDate 2025-02-16 20:44:50
 */
public interface BiUserTeamService extends IService<BiUserTeam> {

    boolean saveUserTeam(long userId, long teamId);

    boolean leaveUserTeam(long userId, long teamId);

    boolean deleteTeamUser(long teamId);
    
    List<BiUserTeam> listUserTeamByTeamId(long teamId);

    List<BiUserTeam> listUserTeamByUserId(long userId);

    BiUserTeam getUserTeam(Long userId, Long teamId);
}
